Skip to content

Custom implementation overwriting nested model#44

Merged
LourensVeen merged 4 commits into
developfrom
custom_implementation_overwriting_nested_model
May 13, 2026
Merged

Custom implementation overwriting nested model#44
LourensVeen merged 4 commits into
developfrom
custom_implementation_overwriting_nested_model

Conversation

@LourensVeen
Copy link
Copy Markdown
Contributor

@LourensVeen LourensVeen commented May 8, 2026

When applying a custom implementation, any existing implementation will be overwritten. If that existing implementation is a model, possibly with submodels itself, then we could end up with one or more models in the configuration that aren't used anymore. (Could, because the same model(s) may be used elsewhere too!).

To avoid ambiguity on which model to run, these models need to be removed, and the algorithm for that only considered the directly overwritten implementation, not any submodels if present. This PR fixes that.

It also fixes a cosmetic problem with serialisation, and adds a bit of debug logging just in case we encounter more problems in the future. Note that those log statements won't be visible in MUSCLE3 unless the manager itself is run with debug logging, which we only do when trying to debug the manager.

@LourensVeen LourensVeen self-assigned this May 8, 2026
@LourensVeen
Copy link
Copy Markdown
Contributor Author

This has had some more real-world testing and it seems to work, so ready to merge I think. Need to check for conflicts with 45 and figure out in which order to merge them.

@LourensVeen LourensVeen merged commit a8877e7 into develop May 13, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant